import request from '@/utils/request'

// 封装列表
export function articleListAPI (params) {
  return request({
    url: '/h5/interview/query',
    params: params
  })
}

export function articleAPI (id) {
  return request({
    url: '/h5/interview/show',
    method: 'GET',
    params: { id }
  })
}

// 点赞收藏图标
export function Like (data) {
  return request({
    url: '/h5/interview/opt',
    method: 'post',
    data: data
  })
}

// 点赞收藏列表
export function collectAndLikeListAPI (params) {
  return request({
    url: '/h5/interview/opt/list',
    params: params
  })
}
